#ifndef CHTTPMANGER_H
#define CHTTPMANGER_H

#include <QObject>
#include <QNetworkAccessManager>
#include <QNetworkReply>

class CHttpManger : public QObject
{
    Q_OBJECT
public:
    explicit CHttpManger(QObject *parent = 0);
    QString _updateData;
    int _try_times;
    bool _request_ok;

signals:
    void s_reply(QByteArray d);

public slots:
    void doGetProject();

    void httpPostSend(QString web_url,QByteArray post_data);
    void replyFinished(QNetworkReply *reply);

protected slots:
    void httpGetSend(QString web_get_url);

private:
    QNetworkAccessManager *_manager;
};

#endif // CHTTPMANGER_H
